package com.sky.entity;


import com.sky.anotion.StatusConvert;
import com.sky.anotion.ValidId;
import com.sky.anotion.validator.UpdateGroup;
import com.sky.enumeration.ValidIdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


import java.io.Serializable;
import java.math.BigInteger;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class Department implements  Serializable {
    private static final long serialVersionUID = 1L;
    @ValidId(message = "ID不能为空",value = ValidIdType.STRING,groups = {UpdateGroup.class}, required = false)
    private String id; // 部门id
    private String name;    // 部门名称
    private String desc;     // 部门描述
    private String instructorId ; // 部门负责人id
    private String departmentLeader; // 负责人姓名
    /** 是否启用*/
    private  Integer isUse;
    /** 部门父id*/
    private String pid;
    /**创建时间*/
    private LocalDateTime createTime;
    /** 创建人*/
    private String createUser;
    /** 更新时间*/
    private LocalDateTime updateTime;
    /** 更新人*/
    private String updateUser;
}
